#define maxsize 20
typedef int keytype;
typedef struct{
	keytype key;
	char dat;
}redtype;

typedef struct{
	redtype r[maxsize+1];
    int length;
}sqlist;


void sqlist_ins_key(int pos,keytype k);

void init_list();


void print_list_key(sqlist* l);

void swap(sqlist*l,int pos1,int pos2);

int cmp(sqlist*l,int pos1,int pos2);

int cmp_redtype(redtype a,redtype b);
